$(function() {
	//打开页面获取sid
	if (!localStorage.sid) {
		var url = baison.gsid_url('api/gsid');
		$.ajax({
			type: "POST",
			url: url,
			dataType: "json",
			success: function(data) {
				if (1 == data.status) {
					localStorage.sid = data.data;
				} else {
					alert(data.message);
				}
			}
		});
	}

});
